package com.tuling.mapper;

import com.tuling.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/***
 * @Author 徐庶   QQ:1092002729
 * @Slogan 致敬大师，致敬未来的你
 */
public interface UserMapper {

    Long insert(User user);

    User selectById(Long id);

    int update(User user);

    int delete(Long id);

    @Select("select id,user_name,create_time from t_user")
    List<User> selectAllUser();
}
